import './assets/main.css'
import { createPinia } from 'pinia'
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";//element-plus样式
import "./styles/element/index.scss";//自定义样式
import "virtual:svg-icons-register";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import icon from '@/components/icon/index.vue'
import elementIcons from "@/components/icon/svgicon.js";
import App from './App.vue'
import router from './router'
import './permission'
import directive from './directive'
//table
import Table from "@/components/Table/index.vue";
//headerform
import HeaderForm from "@/components/Headerform/index.vue";
//dialog
import Dialog from '@/components/Dialog/index.vue';
//pagination
import Pagination from '@/components/Pagination/index.vue';
const app = createApp(App)
app.component("Pagination", Pagination);
app.component("Table", Table);
app.component("HeaderForm", HeaderForm);
app.component("Dialog", Dialog);
app.use(elementIcons);
app.component("Svg-icon", icon);
app.use(ElementPlus, {
  locale: zhCn,
});
directive(app);//注册全局指令

app.use(createPinia())
app.use(router)
app.mount('#app')
 